import HttpUtil from '@/common/HttpUtil'

class VideoViewModelApi {
  // 获取视频信息数据
  findPageVideo (params) {
    let postUrl = process.env.SURVEY_DOMAIN + '/device/video/findPage'
    return HttpUtil.postJSON(postUrl, params)
  }
  // 获取视频设备列表
  findVideo (params) {
    let postUrl = process.env.SURVEY_DOMAIN + '/device/video/findVideo'
    return HttpUtil.postJSON(postUrl, params)
  }
  start (params) {
    let url = process.env.SURVEY_DOMAIN + '/device/video/start'
    return HttpUtil.postJSON(url, params)
  }
  stop (params) {
    let url = process.env.SURVEY_DOMAIN + '/device/video/stop'
    return HttpUtil.postJSON(url, params)
  }
}

export {VideoViewModelApi}
